<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.*, java.util.*" %>

<%
    String username = request.getParameter("username");
    String password = request.getParameter("password");

    // 设定的账号和密码
    String correctUsername = "admin";
    String correctPassword = "password123";

    if (correctUsername.equals(username) && correctPassword.equals(password)) {
%>
        <h3>登录成功</h3>
<%
    } else {
%>
        <h3>登录失败</h3>
<%
    }
%>
